package com.hm.shopping.def;

/**
 * @author shishun.wang
 * @date 2018年1月19日 下午3:30:15
 * @version 1.0
 * @describe 广告位置
 */
public enum AdvertisingLocationEnum {

	/**
	 * 首页广告轮播图
	 */
	HOME_PAGE_SHUFFLING("HOME_PAGE_SHUFFLING","首页广告轮播图");
	
	private String status;

	private String desc;

	private AdvertisingLocationEnum(String status, String desc) {
		this.status = status;
		this.desc = desc;
	}

	public String desc() {
		return this.desc;
	}

	public String status() {
		return this.status;
	}

	public static AdvertisingLocationEnum trance(String status) {
		for (AdvertisingLocationEnum statusDef : AdvertisingLocationEnum.values()) {
			if (statusDef.name().equals(status)) {
				return statusDef;
			}
		}
		return null;
	};
}
